package com.bigShen.pattern.strategy.pay;

import com.bigShen.pattern.strategy.pay.impl.AliPay;
import com.bigShen.pattern.strategy.pay.impl.JDpay;
import com.bigShen.pattern.strategy.pay.impl.UnionPay;
import com.bigShen.pattern.strategy.pay.impl.WeChatPay;

/**
 * @author: lei.shen
 * @date: 2018/10/5
 */
public enum PayType {

    ALI_PAY(new AliPay()),
    JD_PAY(new JDpay()),
    UNION_PAY(new UnionPay()),
    WECHAT_PAY(new WeChatPay());

    private PayMent payMent;

    PayType(PayMent payMent) {
        this.payMent = payMent;
    }

    public PayMent get() {
        return this.payMent;
    }

}
